<html>
<body>
<?php include("menu.php")?>

<table>
<tr>
<th>Title</th><th></th></tr>
<?php
$con = mysqli_connect ( "localhost", "cms", "cms", "cms" );
if (mysqli_connect_errno ()) { // Check connection
	echo "Failed to connect to MySQL: " . mysqli_connect_error ();
}
$result = mysqli_query ( $con, "SELECT id,name FROM menu" );

while ($row = mysqli_fetch_array ( $result )) {
	?>
		<tr>
		  <td><?php echo $row[name]; ?></td>
		  <td><a href="<?php edit_page.php; ?>">Edit</a></td>
		</tr>
	<?php 	
}
?>

</table>

<div>
  <a href="edit_menu.php">New</a>
</div>
</body>
</html>